$(document).ready(function ($) {
    // 收藏
    $("#shoucang").click(function () {
        $.ajax({
            url: '/v1/user/action/system/collection',
            type: 'POST',
            timeout: 5000,
            dataType: 'json',
            contentType: 'application/x-www-form-urlencoded;charset=utf-8',
            data: CollectionInfo,
            success: function (data) {
                if (data.code == 200) {
                    layer.msg(data.msg, {
                        time: 1500
                    });
                } else {
                    layer.msg(data.msg);
                }
            },
            error: function (XMLResponse) {}
        });
    });

    // 历史记录
    window.PlayRecord = function PlayRecord(info) {
        $.ajax({
            url: '/v1/user/action/system/putSeeRecord',
            type: 'POST',
            timeout: 5000,
            dataType: 'json',
            contentType: 'application/x-www-form-urlencoded;charset=utf-8',
            data: info,
            success: function (data) {},
            error: function (XMLResponse) {}
        });
    }
});